Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adding option to overwrite while doing correct_motion and saving to a folder #3088

Merged
merged 15 commits into from
Jul 2, 2024

Conversation

yger
Copy link
Collaborator

@yger yger commented Jun 26, 2024

Currently, when doing motion correction, if saving to a folder we can not overwrite and an error is launched only at then end, after motion correction has been made. This PR adds the option to overwrite the motion folder

@yger yger added enhancement New feature or request preprocessing Related to preprocessing module labels Jun 26, 2024
@alejoe91 alejoe91 added this to the 0.101.0 milestone Jun 27, 2024
@@ -204,6 +204,7 @@ def correct_motion(
recording,
preset="nonrigid_accurate",
folder=None,
overwrite=False,
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is not consistent with some otherplace in spikeinterface.

Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think we use it at many places! Save, analyzers, etc..

Only in run sorter this is different...

@alejoe91
Copy link
Member

alejoe91 commented Jul 1, 2024

@yger why did you remove the code that does the overwriting?

@yger
Copy link
Collaborator Author

yger commented Jul 1, 2024

aie, mistake then, i'll check

@yger
Copy link
Collaborator Author

yger commented Jul 1, 2024

I've mixed up some git history I guess, so mayeb the best is to delete this PR and start a new one? I don't know how to properly revert, there are way too many changes in my commit that are not mine here

alejoe91
alejoe91 previously approved these changes Jul 1, 2024
@alejoe91
Copy link
Member

alejoe91 commented Jul 1, 2024

the diff in files look really weird!

@yger I would suggest making a clean PR without messing up with git history ;)

@alejoe91 alejoe91 dismissed their stale review July 1, 2024 17:26

weird git history

@yger
Copy link
Collaborator Author

yger commented Jul 1, 2024

Now this has been fixed and the diff is legit. Just squash everything

@alejoe91 alejoe91 merged commit 6dbf7c6 into SpikeInterface:main Jul 2, 2024
17 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request preprocessing Related to preprocessing module
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants